package leafedbox.utils
{
	/**
	 *  A utility class for working with strings.
	 */
	public class StringUtil
	{
		//----------------------------------------------------------------------
		// Static methods
		//----------------------------------------------------------------------

		/**
		 * Repeats a string
		 *
		 * @param str  The string to repeat.
		 * @param iter The number of times to repeat the string.
		 *
		 * @return  A string of repeated strings.
		 */
		public static function repeatString(str:String, iter:int):String
		{
			var ret : String = "";

			for(var i:int=0; i<iter; i++) {
				ret += str;
			}

			return ret;
		}
	}    

}